<%-- 
    Document   : addProduct
    Created on : Apr 30, 2013, 4:38:47 PM
    Author     : Gleb
--%>
<%@include file="/header.jsp" %>

<div class="left_side">
    <jsp:include page="/blocks/conditionalLeftBar.jsp" />
</div>

<div class="right_side">
    <h2 class="content_title">Add new product</h2>
    <div class="white_block">
        <table align="center" border="0">
            <tr> 
                <td>
                    <form action ="addProduct" method="post">
                        <input type ="hidden" name="id">                                                                   <!-- /^[-\+]?\d+/ -->
                        Name:
                        <input type ="text" name ="productName" style="width: 100%"> <p>
                        Cost: &nbsp&nbsp
                        <input type ="text" id="cost" name ="cost" style="width: 100%" onchange="if (this.value.match(/^[1-9]+[0-9]*$/) === null) {alert('Cost is not a number'); this.value = ''; }"> <p>
                        Description:
                        <textarea name ="description" rows ="10" cols="80" style="width: 100%"> </textarea><p> 
                        Select a guitar image:<p>
                        <input type ="file" name="upFile"> <p> 
                        <input type ="submit" value="Save"> <input type ="reset" value ="Clear">
                    </form>
                </td>
            </tr>
        </table>
    </div>
</div>

<%@include file="/footer.jsp" %>
